﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Collections;
using MySql.Data.MySqlClient;
using IPTV.dao;
using IPTV.module;
using System.Data;
using IPTV.util;

/// <summary>
///indexService 的摘要说明
/// </summary>
namespace IPTV.service
{
    public class PrimaryIndexService
    {
        public PrimaryIndexService()
        {
            
        }


        public List<PlateDto> getPlatByGradeNSubject( string subjectName)
        {
            PlateDao platDao = new PlateDao();
            return platDao.findPlatByGradeNameSubjectNameKind("小学", subjectName, CommonUtil.PRIMARY_PLATE_KIND);
        }

        public List<me_p_recommend_config> getAdPic()
        {
            ADpicDao adPicDao = new ADpicDao();
            return adPicDao.getAdPic();
        }

        public me_p_recommend_config getAdPic(string categorykind)
        {
            ADpicDao adPicDao = new ADpicDao();
            return adPicDao.getAdPic(categorykind);
        }
    }


}